package com.jxsm.cz.util;

/**
 * @author guodegen
 * @description
 * @date 2020/10/17 8:58
 */
public class Validate {
    public static String isNullToDefault(Object in,String out){
        if(in != null && !"".equals(in.toString().trim())
                && !"null".equals(in.toString().trim())
                && !"NaN".equals(in.toString().trim())){
            return in.toString();
        }else{
            return out;
        }
    }
}
